import request from '@/utils/request'
export default {
  setData(dataVo){
    return request({
      url: `/db_work/player-data/setData`,
      method: 'post',
      // 把对象转换成JSON
      data:dataVo
    })
  },
  getData(id){
    return request({
      url: `/db_work/player-data/getData/${id}`,
      method: 'get'
    })
  },
  rank(factory){
    return request({
      url: `/db_work/player-data/rank/${factory}`,
      method: 'get'
    })
  }
}
